import datetime
import os

# server related configuration
bucket_name=os.getenv('BUCKET_NAME') or "tcl-channel-day-count-dev"
region_name=os.getenv('REGION_NAME') or 'us-west-2'

port = os.getenv('PORT') or '8010'

USERS_HISTORY_HOST = os.getenv('USERS_HISTORY_HOST') or "http://54.88.104.155:8081/api/users/history"
USERS_LASTWATCH_CHANNEL_HOST = os.getenv('USERS_LASTWATCH_CHANNEL_HOST') or "http://54.88.104.155:8081/user/getUserLastWatchedChannel"

folder_watch_time = "watch"
PLAY_DATA_FILENAME_PREFIX = "dayly_play_data_"

# app related configuration, DON'T CHANGE THIS
curPath = os.path.abspath(os.path.dirname(__file__))
parentPath=os.path.dirname(curPath)
now_time = datetime.datetime.now()
date = (now_time).strftime("%Y-%m-%d")
excl_name = 'FAST Channel dashboard-' + date + '.xlsx'

DTYPE_WATCH = {'timestamp': 'float64',
               'sessionId': 'str',
               'deviceMaker': 'str',
               'deviceModel': 'str',
               'deviceType': 'str',
               'version': 'str',
               'deviceId': 'str',
               'userId': 'str',
               'eventType': 'str',
               'pageTitle': 'str',
               'eventCategory': 'str',
               'eventAction': 'str',
               'channelId': 'str',
               'movieId': 'str',
               'contentName': 'str',
               'country': 'str',
               'logVersion': 'str',
               'endtimestamp': 'float64',
               'duration': 'float',
               'position': 'str',
               'position1': 'str',
               'position2': 'str',
               'position3': 'str',
               'adId': 'str',
               'extraInfo1': 'str',
               'extraInfo2': 'str',
               'extraInfo3': 'str'}


